package com.xtz.service.impl;

import com.xtz.domain.User;
import com.xtz.mapper.LoginMapper;
import com.xtz.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * date: 2022/5/16 19:00
 *
 * @author xietianze
 */
@Service
public class LoginServiceImpl implements LoginService {

    @Autowired
    private LoginMapper loginMapper;
    @Override
    public Boolean addUser(User user) {

        return loginMapper.add(user)>0;
    }
}
